<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义变量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="language.references.spot.html">引用定位</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="language.variables.superglobals.html">超全局变量</a></div>
 <div class="up"><a href="langref.html">语言参考</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="reserved.variables" class="reference">
 <h1 class="title">预定义变量</h1>

 <div class="partintro">

  <p class="para">
   对于全部脚本而言，PHP 提供了大量的预定义变量。这些变量将所有的<a href="language.variables.external.html" class="link">外部变量</a>表示成内建环境变量，并且将错误信息表示成返回头。
  </p>
  
  <p class="para">
   参见 FAQ “<a href="faq.using.html#faq.register-globals" class="link">register_globals 对我有什么影响？</a>”
  </p>

 </div>

 



 



 



 



 





 


 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 



 





 




<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="language.variables.superglobals.html">超全局变量</a> — 超全局变量是在全部作用域中始终可用的内置变量</li><li><a href="reserved.variables.globals.html">$GLOBALS</a> — 引用全局作用域中可用的全部变量</li><li><a href="reserved.variables.server.html">$_SERVER</a> — 服务器和执行环境信息</li><li><a href="reserved.variables.get.html">$_GET</a> — HTTP GET 变量</li><li><a href="reserved.variables.post.html">$_POST</a> — HTTP POST 变量</li><li><a href="reserved.variables.files.html">$_FILES</a> — HTTP 文件上传变量</li><li><a href="reserved.variables.request.html">$_REQUEST</a> — HTTP Request 变量</li><li><a href="reserved.variables.session.html">$_SESSION</a> — Session 变量</li><li><a href="reserved.variables.environment.html">$_ENV</a> — 环境变量</li><li><a href="reserved.variables.cookies.html">$_COOKIE</a> — HTTP Cookies</li><li><a href="reserved.variables.phperrormsg.html">$php_errormsg</a> — 前一个错误信息</li><li><a href="reserved.variables.httprawpostdata.html">$HTTP_RAW_POST_DATA</a> — 原生POST数据</li><li><a href="reserved.variables.httpresponseheader.html">$http_response_header</a> — HTTP 响应头</li><li><a href="reserved.variables.argc.html">$argc</a> — 传递给脚本的参数数目</li><li><a href="reserved.variables.argv.html">$argv</a> — 传递给脚本的参数数组</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="language.references.spot.html">引用定位</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="language.variables.superglobals.html">超全局变量</a></div>
 <div class="up"><a href="langref.html">语言参考</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
